﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Tools.Ribbon;

namespace vpowerpoint
{
    public partial class Ribbon1
    {
        Settings _seetings = new Settings();
        AboutBox1 _help = new AboutBox1();
        private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
        {
           // Globals.ThisAddIn._plug.ShowNotfivationIcon(this.notifyIcon1);
            notifyIcon1.ShowBalloonTip(5000, "Server", "Server Is Starting", System.Windows.Forms.ToolTipIcon.Info);
        }

        private void button1_Click(object sender, RibbonControlEventArgs e)
        {
           
        }

       
        private void button2_Click(object sender, RibbonControlEventArgs e)
        {
            _help.ShowDialog();
        }

        private void button3_Click(object sender, RibbonControlEventArgs e)
        {
            _seetings.ShowDialog();
        }

        private void toggleButton1_Click(object sender, RibbonControlEventArgs e)
        {
            if (toggleButton1.Checked)
            {
                Globals.ThisAddIn._plug.init(Globals.ThisAddIn.Application.ActivePresentation);
               
            }
            else
            {

                Globals.ThisAddIn._plug.Close();
            }
        }
    }
}
